home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / program / dfvb19.zip / DFRAMEVB.DOC < prev    next >
Text File  |  1993-12-09  |  62KB  |  1,187 lines

  1.  
  2.  
  3.                                D O O R F R A M E
  4.                                   Version 1.9
  5.  
  6.                         A BBS Doors Development Library
  7.                        for the Visual Basic DOS compiler
  8.  
  9.                               Copyright (c)1993
  10.                       By Richard Paquette and Chuck Valecek
  11.                              All rights reserved.
  12.  
  13.                             Support boards are:
  14.  
  15.                               The Livewire BBS 
  16.                             - Richard Paquette - 
  17.                    - Public Nodes (2) 609-235-5297 (HST) -
  18.                          
  19.                               Suburban Software
  20.                               - Chuck Valecek - 
  21.                 - Public Nodes (2) 708-636-6694 / 708-636-6697 -
  22.  
  23.  
  24.  
  25.  
  26. DOORFRAME v1.8 - Users Guide - Page i
  27.  
  28.  
  29.                                 C O N T E N T S
  30.                                =================
  31.  
  32.         Warranty ............................................ ii
  33.         Copyright notice .................................... ii
  34.         Distribution ........................................ ii
  35.         Description ......................................... ii
  36.         BOX.IT .............................................. 1
  37.         BACK.SPACE .......................................... 2
  38.         CLEARBUFFER ......................................... 2
  39.         CLREOL .............................................. 2
  40.         CLRMOL .............................................. 2
  41.         CLRSOL .............................................. 2
  42.         CLRSCRN ............................................. 2
  43.         DE.LAY .............................................. 2
  44.         DETECT.ANSI ......................................... 2
  45.         DIS.PLAY ............................................ 3
  46.         ENTER ............................................... 4
  47.         EXIT.DOOR ........................................... 4
  48.         IN.PUT .............................................. 4
  49.         IN.KEY .............................................. 4
  50.         INITIALIZE .......................................... 5
  51.         LINES ............................................... 5
  52.         MAKE.BLT ............................................ 6
  53.         MAKE.BLT.CURRENT .................................... 6
  54.         MORE ................................................ 6
  55.         MUSIC ............................................... 6
  56.         OUT.PUT ............................................. 6
  57.         SEND ................................................ 7
  58.         SENDANSI ............................................ 7
  59.         SHOW.BLT ............................................ 7
  60.         COLOR TABLE ......................................... 8
  61.         CONFIGURATION FILE FORMAT ........................... 9
  62.         PCBOARD.SYS VARIABLES ............................... 10
  63.         USERS.SYS VARIABLES ................................. 12
  64.         DOOR.SYS VARIABLES .................................. 13
  65.         USERINFO.DAT VARIABLES .............................. 15
  66.         DORINFOx.DEF VARIABLES .............................. 15
  67.         CALLINFO.BBS VARIABLES .............................. 16
  68.         SFDOORS.DAT VARIABLES ............................... 18
  69.         MISCELLANEOUS NOTES ................................. 20
  70.  
  71.  
  72. DOORFRAME v1.8 - Users Guide - Page ii
  73.  
  74.  
  75.                                    Warranty
  76.  
  77.     This product is provided "as is" without warranty of any kind. The entire
  78.     risk as to the results and  performance of the program is assumed by you.
  79.     Futhermore, the  author does  not warrant, guarantee, or  make any  other
  80.     representations regarding  the use of,  or the  results of the use of the
  81.     program,  and you  rely on the  program and  results  solely at  your own
  82.     risk.  The author  cannot and  will not accept  responsibility for system
  83.     damage, loss of profit, or any other special, consequential or incidental 
  84.     damages  resulting  from  the  use  or  inability  to  use this  product.
  85.  
  86.                                    Copyright
  87.  
  88.     DOORFRAME (Copyright (c) 1993 by Richard Paquette & Chuck Valecek) is being
  89.     distributed as Shareware. Under this concept you may use the SHAREWARE or
  90.     (unregistered) version for a reasonable period of time for evaluation after
  91.     which you should either register your copy or discontinue  usage.
  92.  
  93.                                  Distribution
  94.  
  95.     You  are encouraged to distribute DOORFRAME provided that all files
  96.     contained in the archive are distributed in their original and
  97.     unmodified state.
  98.  
  99.                                   Description
  100.     
  101.     DOORFRAME is a subroutine library for developing online BBS Doors for
  102.     systems that are compatible with PCBOARD.SYS, USERS.SYS, DOOR.SYS,
  103.     CALLINFO.BBS, USERINFO.DAT, SFDOORS.DAT, or DORINFOx.DEF for
  104.     interfacing to the BBS.
  105.     This version of DoorFrame was written for MicroSoft's Visual Basic for
  106.     DOS (tm). DoorFrame also utilizes some of the routines contained in Tom 
  107.     Hanlin's PBClone library. The COM routines are handled by the QBSerial 
  108.     I/O library.
  109.  
  110.  
  111. DOORFRAME v1.8 - Users Guide - Page 1
  112.  
  113.  
  114.                               DOORFRAME ROUTINES
  115.                              ====================
  116.  
  117. NOTE: 
  118. Since the subroutines are DECLAREd in DFRAMEVB.INC (you DID $INCLUDE: it 
  119. didn't you?) you should not use the CALL statement. Type the name of the 
  120. subroutine and list it's parameters (if any) without the enclosing 
  121. parentheses. For example:
  122.  
  123. DIS.PLAY MSG$,FG%,BG%,BLINK%,BELL%,XPOS%,YPOS%,NL%,CENTER%,CAPS%,CODES%
  124. -----------------------------------------------------------------------------
  125.  
  126. SUBROUTINE: 
  127. BOX.IT SROW%,SCOL%,EROW%,ECOL%,BTYPE%,BFG%,BBG%,FFG%,FBG%,FCHAR%,SHADOW%,TITLE$,HFG%,HBG%
  128. PARAMETERS: SROW%    - ROW the box is to start at. Valid numbers are 1 - 22.
  129.                        Accepts an INTEGER number or variable.
  130.             SCOL%    - COLUMN the box is to start at. Valid numbers are 1 - 79.
  131.                        Accepts an INTEGER number or variable.
  132.             EROW%    - ROW the box is to end at. Valid numbers are 2 - 23.
  133.                        Accepts an INTEGER number or variable.
  134.             ECOL%    - COLUMN the box is to end at. Valid numbers are 2 - 80.
  135.                        Accepts an INTEGER number or variable.
  136.             BTYPE%   - Type of border. Accepts an INTEGER number or variable.
  137.                          0 = No border (spaces all the way around).
  138.                          1 = Single line all the way around.
  139.                          2 = Double line all the way around.
  140.                          3 = Double line on sides, single on top and bottom.
  141.                          4 = Single line on sides, double on top and bottom.
  142.             BFG%     - Foreground color of the border. (See color table)
  143.                        Accepts an INTEGER number or variable.
  144.             BBG%     - Background color of the border. (See color table)
  145.                        Accepts an INTEGER number or variable.
  146.             FFG%     - Foreground color of the box fill characters.
  147.                        Accepts an INTEGER number or variable.
  148.             FBG%     - Background color of the box fill characters.
  149.                        Accepts an INTEGER number or variable.
  150.             FCHAR%   - ASCII number of the character to fill box with.
  151.                        EX: 32 = SPACE, 65 = A, 206 = ╬
  152.             SHADOW%  - -1 = no Shadow, 0 - 7 = Background color of the Shadow. 
  153.                        This will put a Shadow on the right and bottom edges 
  154.                        of the box.
  155.             TITLE$   - Displays a title centered on the top border.
  156.                        Accepts a STRING variable or QUOTED TEXT.
  157.             HFG%     - Foreground color of TITLE$
  158.             HFG%     - Background color of TITLE$
  159.  
  160. DESCRIPTION: Draws a BOX with various style borders. The inside of the
  161.              BOX may be filled with any ASCII character you choose. The
  162.              upper left corner of the screen is ROW 1, COLUMN 1 and the
  163.              bottom right is ROW 23, COLUMN 80.
  164.  
  165.  
  166.  
  167.  
  168. DOORFRAME v1.8 - Users Guide - Page 2
  169.  
  170. SUBROUTINE: BACK.SPACE ROW%, COL%, NUM%
  171. PARAMETERS: ROW%, COL%, NUM%
  172. DESCRIPTION: Backspaces NUM% from the ROW% and COL% specified.
  173.  
  174. SUBROUTINE: CLEARBUFFER BUFF%
  175. PARAMETERS: BUFF%, 0, 1, 2
  176. DESCRIPTION: Clears either the keyboard buffer, the communications input
  177.              buffer, or both.
  178.              0 = Clear both buffers.
  179.              1 = Clear communications input buffer only.
  180.              2 = Clear keyboard buffer only.
  181.  
  182. SUBROUTINE: CLREOL XPOS%, YPOS%, BGC%
  183. PARAMETERS: XPOS%, YPOS%, BGC%
  184. DESCRIPTION: Clears from the specified row and column to the end of that
  185.              line. The line is cleared in whatever color is specified in
  186.              the BGC% parameter. NOTE: Does not work in non-ANSI.
  187.  
  188. SUBROUTINE: CLRMOL XPOS%, YPOS%, LENGTH%, BGC%
  189. PARAMETERS: XPOS%, YPOS%, LENGTH%, BGC%
  190. DESCRIPTION: Clears from the specified row and column for the number of
  191.              columns given in LENGTH%. The line is cleared in whatever
  192.              color is specified in the BGC% parameter.
  193.              NOTE: Does not work in non-ANSI.
  194.  
  195. SUBROUTINE: CLRSOL XPOS%, YPOS%, BGC%
  196. PARAMETERS: XPOS%, YPOS%, BGC%
  197. DESCRIPTION: Clears from the specified row and column to the start of that
  198.              line. The line is cleared in whatever color is specified in
  199.              the BGC% parameter. NOTE: Does not work in non-ANSI.
  200.  
  201. SUBROUTINE: CLRSCRN
  202. PARAMETERS: BGC%
  203. DESCRIPTION: Clears both the LOCAL (if ON) and REMOTE displays in the back-
  204.              ground color of your choice. Range is 0 - 7. ANSI only.
  205.  
  206.  
  207. SUBROUTINE: DE.LAY SEC%
  208. PARAMETERS: SEC%, 1, 2, Etc.
  209. DESCRIPTION: Pauses your program for the number of seconds in SEC%. Accepts
  210.              INTEGER number or variable.
  211.  
  212. SUBROUTINE: DETECT.ANSI
  213. PARAMETERS: None
  214. DESCRIPTION: This routine will determine if the remote system has ANSI
  215.              capability. If the remote system is ANSI compatible, the
  216.              GRAPHICS% variable will be set equal to -1 otherwise it is
  217.              set to 0. This routine does not control whether COLOR is used
  218.              or not, see the MODE% variable for that.
  219.  
  220.  
  221.  
  222. DOORFRAME v1.8 - Users Guide - Page 3
  223.  
  224. SUBROUTINE: 
  225. DIS.PLAY MSG$,FG%,BG%,BLINK%,BELL%,XPOS%,YPOS%,NL%,CENTER%,CAPS%,CODES%
  226. PARAMETERS: MSG$     - Text to be printed in either variable or quoted form.
  227.                        Example: "Print this" or MSG$ = "Print this".
  228.             FG%      - Foreground color (0 - 15) Of the text. Can be in
  229.                        INTEGER number or INTEGER variable form. 
  230.                        Example: FG% = 1, 1, BLUE (See Color Table)
  231.             BG%      - Background color (0 - 7) of text otherwise same as FG%
  232.             BLINK%   - Enter 1 for blinking text or 0 for normal text.
  233.                        Accepts INTEGER number or INTEGER variable.
  234.             BELL%    - Enter 1 to sound a beep on the remote or 0 for no
  235.                        beep. Does not beep on the local computer.
  236.                        Accepts INTEGER number or INTEGER variable.
  237.             XPOS%    - Row number for cursor positioning. Valid numbers
  238.                        are 0 - 23 (status line is on 24 - 25). Enter 0 to
  239.                        disable. Accepts INTEGER number or variable.
  240.                        NOTE: XPOS% is ignored when GRAPHICS% = 0.
  241.             YPOS%    - Column number for cursor positioning. Valid numbers
  242.                        are 0 - 80. Enter 0 to disable. Accepts INTEGER number
  243.                        or INTEGER variable.
  244.                        NOTE: YPOS% is ignored when GRAPHICS% = 0.
  245.             NL%      - Enter 1 to send a CR/LF at the end of the line. Enter
  246.                        0 to position the cursor after the last character.
  247.                        Accepts INTEGER number or INTEGER variable.
  248.             CENTER%  - Enter 1 to center the line or 0 for no centering.
  249.             CAPS%    - Enter 1 to convert text to all uppercase.
  250.                        Enter -1 to convert text to all lowercase.
  251.                        Enter 0 for no case conversion.
  252.                        Accepts INTEGER number or INTEGER variable.
  253.             CODES%   - 0 = No color codes in this statement.
  254.                        1 = Color codes are present in this statement.
  255.  
  256. DESCRIPTION: Displays text to both the Local (if on) and Remote screens.
  257.              Accepts the full ASCII charcter set (0 - 255). Supports ANSI
  258.              color and cursor positioning (XPOS%, YPOS%). DoorFrame features
  259.              auto-ANSI detection and will display in graphics mode if it
  260.              senses ANSI capability on the remote end.
  261.  
  262. ENHANCEMENTS: There are some special symbols available to make text blink
  263.              in the middle of a line in any color you wish. For example:
  264.  
  265.              DIS.PLAY "This will %{Blink Yellow{", LWHITE, BLACK, 0, 0,......
  266.  
  267.              Note the {'s before and after Blink Yellow. They tell the routine
  268.              to display the text in between in yellow and blinks because 
  269.              of the % symbol. Without the % the text is displayed in yellow
  270.              but does not blink. The rest of the line is displayed in white
  271.              on black. The symbols and their corresponding colors are:
  272.                 ~ = Blue,  ` = Green,  @ = Cyan,  ^ = Red,  | = Magenta
  273.                 { = Yellow, and } = White 
  274.              Put a * in front of the first symbol to display in low intensity
  275.              colors. Ex: *}text} displays 'text' in low intensity white. And
  276.              %*}test} displays 'text' in low intensity white and blinks.
  277.  
  278.  
  279. DOORFRAME v1.8 - Users Guide - Page 4
  280.  
  281.              Please note that you must have called DETECT.ANSI before using
  282.              these symbols and the caller must be ANSI capable. Multiple codes
  283.              are allowed in one Dis.Play statement. See the included
  284.              DFDEMO.BAS file for examples on using this option.
  285.              If a particular Dis.Play statement does not contain any of these
  286.              color codes, then the Codes% parameter should contain a 0. This
  287.              will result in a significant increase in display speed since the
  288.              routine doesn't have to search for and strip these characters.
  289.  
  290. SUBROUTINE: ENTER
  291. PARAMETERS: None
  292. DESCRIPTION: Outputs a "Press <ENTER> to Continue" prompt and waits for the
  293.              response. If the caller is in graphics mode, this is centered
  294.              on line 23. In non-graphics mode it is centered 2 lines below
  295.              the last line printed.
  296.  
  297.  
  298. SUBROUTINE: EXIT.DOOR YN$
  299. PARAMETERS: YN$, "Y", "N", "G"
  300. DESCRIPTION: VERY IMPORTANT! Always call this subroutine as the last thing
  301.              your program does. EXIT.DOOR updates the system files with any
  302.              changes that have been made to system variables, closes the
  303.              files, etc.
  304.  
  305.              You can toggle this ON, "Y" or OFF, "N" when you call EXIT.DOOR.
  306.              Accepts a STRING variable YN$ = "Y" or quoted text "Y".
  307.              If you wish to allow the caller to log off from your Door, call
  308.              EXIT.DOOR "G". When you use EXIT.DOOR "G", DoorFrame returns a
  309.              DOS Error Level of 1 for Wildcat! systems and 62 for all others.
  310.  
  311. SUBROUTINE:
  312. IN.KEY
  313. PARAMETERS: NONE
  314. DESCRIPTION: Simple routine to get a resonse from a user. Basically it emulates
  315.              the BASIC Inkey command. It will do nothing but get a response from
  316.              the user and check for dropped carrier. It does NOT watch the time
  317.              thats your job. Should return a response faster than the IN.PUT
  318.              routine. It will return a value in RESPONSE$.
  319. EXAMPLE:     
  320.              DO WHILE RESPONSE$ = ""
  321.                IN.KEY
  322.                X& = X& + 1
  323.                DIS.PLAY STR$(X&), FG%, BG%, BLINK%, BELL%, XPOS%, YPOS%, NL%, CENTER%, CAPS%, CODES%
  324.              LOOP
  325.  
  326. SUBROUTINE: 
  327. IN.PUT LENGTH%, WAITTIME&, IFG%, IBG%, AUTOCR%, Text$, TFG%, TBG%, X%, Y%, Show%
  328. PARAMETERS: LENGTH%   - Desired length of input. Accepts an INTEGER number
  329.                         or variable. 0 = any length.
  330.             WAITTIME& - Number of seconds to wait for input. If ENTER is not
  331.                         pressed before this times out, control is passed back
  332.                         to the calling routine and RESPONSE$ will contain "-1"
  333.             IFG%      - Foreground color of the response (INTEGER).
  334.             IBG%      - Background color of the response (INTEGER).
  335.             AUTOCR%   - 1 = Automatic CR, 0 = Wait for ENTER to be pressed.
  336.             Text$     - Text to display (if any). Use "" for no display.
  337.             TFG%      - Foreground color of Text$
  338.             BFG%      - Background color of Text$
  339.             X%        - X coordinate to display text. 0 = current coordinate.
  340.             Y%        - Y coordinate to display text. 0 = current coordinate.
  341.             Show%     - 0 = Don't display response, 1 = Display response.
  342.  
  343. DESCRIPTION: Gets a response from the caller which is returned in the variable
  344.              RESPONSE$. Passes ASCII characters in the range 32 - 127 and
  345.              ignores all others unless Hi.Ascii% = 1, in which case it accepts
  346.              ASCII 32 - 255. IN.PUT also allows you to use HOT KEYS! If you are
  347.              prompting for a Y/N you could do something like:
  348.              
  349.              IN.PUT 1, 180, 12, 0, 1, "Is everything correct? (y/n) ", 1, 1, 0
  350.              IF UCASE$(RESPONSE$) = "Y" THEN      Etc., Etc.
  351.  
  352.  
  353. DOORFRAME v1.8 - Users Guide - Page 5
  354.  
  355.              As soon as the caller hit Y or N, the subroutine terminates
  356.              without his having to hit ENTER (however IN.PUT always returns
  357.              when ENTER is pressed). The response would not be displayed.
  358.              The IN.PUT can also be used as a timed routine. In the example
  359.              above, The routine would wait for 180 seconds. if it does not
  360.              receive a keypress within that time, it returns to the calling
  361.              routine and RESPONSE$ would contain a "-1".
  362.              IN.PUT features word-wrap ability in both forward typing and
  363.              while backspacing.
  364.  
  365. SUBROUTINE: INITIALIZE
  366. PARAMETERS: None
  367. DESCRIPTION: VERY IMPORTANT! You MUST make a call to INITIALIZE before your
  368.              code does anything. This subroutine opens the system files and
  369.              obtains all the information you will need to run your Door. It
  370.              first reads the configuration file you passed on the command
  371.              line, then it reads the BBS interface file PCBOARD.SYS, etc.
  372.              There are 3 variables that must be populated before the call
  373.              to INITIALIZE. 
  374.                 PROGNAME$ = "Name of your Door"
  375.                 EXENAME$ = "FILENAM"
  376.                 VERSION$ = " v0.0"
  377.                 INITIALIZE
  378.              PROGNAME$ and VERSION$ are displayed on the Status line after
  379.              the callers name. EXENAME$ must be populated if you plan to use
  380.              the high score bulletin generator. EXENAME$ is the filename of
  381.              your program minus the .EXE extension.
  382.          ->  NOTE: EXENAME$ MUST BE NO MORE THAN 7 CHARACTERS!
  383.  
  384.  
  385. SUBROUTINE: LINES SROW%,SCOL%,LEN%,DIR$,ENDS%,MID%,EFG%,EBG%,MFG%,MBG%
  386. PARAMETERS: SROW%    - Row the line starts at. Valid numbers are 1 - 22.
  387.                        Accepts an INTEGER number or variable.
  388.             SCOL%    - Column the line starts at. Valid numbers are 1 - 79.
  389.                        Accepts an INTEGER number or variable.
  390.             LEN%     - Length of the line. Max. of 23 for vertical, 80 horiz.
  391.                        Accepts an INTEGER number or variable.
  392.             DIR$     - "H" = horizontal. "V" = vertical. Accepts a STRING
  393.                        variable or quoted text.
  394.             ENDS%    - If you are placing the line inside a box, you can
  395.                        make the ends of the line match the box border.
  396.                        Accepts an INTEGER number or variable.
  397.                          0 = No ends. (straight line only)
  398.                          1 = Single line.
  399.                          2 = Double line.
  400.             MID%     - Type of line. 1 = Single line. 2 = Double line.
  401.                        Accepts an INTEGER number or variable.
  402.             EFG%     - Foreground color of the ends (see color table).
  403.                        Accepts an INTEGER number or variable.
  404.             EBG%     - Background color of the ends (see color table).
  405.                        Accepts an INTEGER number or variable.
  406.             MFG%     - Foreground color of the line (see color table).
  407.                        Accepts an INTEGER number or variable.
  408.             MBG%     - Background color of the line (see color table).
  409.                        Accepts an INTEGER number or variable.
  410. DESCRIPTION: Draws either a vertical or horizontal line at the specified
  411.              location. 
  412.  
  413.  
  414. DOORFRAME v1.8 - Users Guide - Page 6
  415.  
  416. SUBROUTINE: MAKE.BLT HI.SCORE&
  417. PARAMETERS: HI.SCORE&, 10, 10000, Etc.
  418. DESCRIPTION: This routine will write a hi-score bulletin listing the top ten
  419.              scores. The parameter passed must be a LONG INTEGER (&). This
  420.              routine creates a file called FILENAME.BUL (where FILENAME is
  421.              the same as specified in the EXENAME$ variable). The first line
  422.              of this .BUL file indicates the path to the actual BLT file. It
  423.              initially writes FILENAME.BLT. If you wish to have a different
  424.              filename (such as BLT1) you must edit this line. The filename
  425.              for your BLT file should be 7 characters or less because
  426.              DoorFrame also writes a graphics BLT and appends a G to the
  427.              filename. (You should also explain this to your user Sysops!)
  428.  
  429. SUBROUTINE: MAKE.BLT.CURRENT HI.SCORE&
  430. PARAMETERS: HI.SCORE&, 10, 10000, Etc.
  431. DESCRIPTION: Same as MAKE.BLT except it posts CURRENT scores rather than
  432.              highest scores.
  433.  
  434.  
  435. SUBROUTINE: MORE
  436. PARAMETERS: None
  437. DESCRIPTION: Outputs "Press <ENTER> to continue, or <E> to end" and waits
  438.              for a response. Check the variable RESPONSE$ for an "E" and
  439.              terminate the current routine if found. For example:
  440.                 MORE
  441.                 IF UCASE$(RESPONSE$) = "E" THEN
  442.                   Etc.. Etc.
  443.  
  444. SUBROUTINE: MUSIC TUNE$
  445. PARAMETERS: MUSIC CODES
  446. DESCRIPTION: Outputs music to the remote system. The TUNE$ parameter
  447.              contains the same codes you would normally use in the BASIC
  448.              PLAY statement. For example:
  449.               TUNE$ = "t110 l8 ms d4 mn o3 g a b o4 c ... "
  450.               MUSIC TUNE$
  451.              Since not all communications programs can handle music, you
  452.              should ask the user if he has music capabilities. If the
  453.              user can't handle music he will simply see the music codes
  454.              come across his screen (not a pretty sight!).
  455.  
  456.  
  457. SUBROUTINE: OUT.PUT LF%
  458. PARAMETERS: LF%, 1, 2, Etc.
  459. DESCRIPTION: Outputs the specified number of CR/LF. Parameter is an INTEGER
  460.              number or an INTEGER variable. Ex: OUT.PUT 2
  461.  
  462.  
  463.  
  464. DOORFRAME v1.8 - Users Guide - Page 7
  465.  
  466. SUBROUTINE: SEND FILENAME$, YN%, CLR%
  467. PARAMETERS: FILENAME$ - STRING variable or quoted text of file to SEND.
  468.             YN%       - 0 = Do not use the ENTER prompt after last page.
  469.                         1 = Use the ENTER prompt after last page.
  470.             CLR%      - 0 = Home cursor, do not clear screen.
  471.                         1 = Normal clear screen.
  472. DESCRIPTION: Sends the specified filename. This can be either an ASCII file
  473.              or an ANSI file. SEND first checks for the existance of the file
  474.              and either sends the file or reports "File not Found!". This is
  475.              handy for displaying Help files, Welcome screens, etc.
  476.        NOTE: When using The Draw to create ANSI screens, save the screen using
  477.              the block mode (ALT-B) as this seems to produce better results
  478.              than using the regular save function (ALT-S).
  479.  
  480.  
  481. SUBROUTINE: SENDANSI FILENAME$, YN%, INTER%
  482. PARAMETERS: FILENAME$ - STRING variable or quoted text of file to send.
  483.             YN%       - 0 = Do not use the ENTER prompt after last page.
  484.                         1 = Use the ENTER prompt after last page.
  485.                         2 = Pause at end for Spacebar. Doesn't print anything
  486.             INTER%    - 0 = User can interrupt and exit the screen anytime.
  487.                         1 = User cannot interrupt file until it is finished.
  488. DESCRIPTION: Sends the specified ANSI file if it exists. This routine does
  489.              not stop until the entire file has been sent. Pressing the
  490.              Spacebar during display aborts the file unless Inter% is set
  491.              to 1.
  492.  
  493.  
  494. SUBROUTINE: SHOW.BLT YN$
  495. PARAMETERS: YN$, "Y", "N"
  496. DESCRIPTION: Call this routine if your Door features a Hi-score bulletin. Make
  497.              sure you have called MAKE.BLT first! Best place to call this
  498.              is just before you call EXIT.DOOR. For example:
  499.                MAKE.BLT HI.SCORE&
  500.                SHOW.BLT "Y"
  501.                EXIT.DOOR "Y"
  502.              SHOW.BLT "Y" will ask if they want to see the Bulletin.
  503.              SHOW.BLT "N" displays the bulletin without asking.
  504.  
  505.  
  506. DOORFRAME v1.8 - Users Guide - Page 8
  507.  
  508.  
  509.                              C O L O R  T A B L E
  510.                             ======================
  511.  
  512. COLOR # - NAME       INTENSITY       FOREGROUND (FG%)     BACKGROUND (BG%)
  513. ---------------------------------------------------------------------
  514.  0 - BLACK              Low               X                   X
  515.  1 - BLUE                "                X                   X
  516.  2 - GREEN               "                X                   X
  517.  3 - CYAN                "                X                   X
  518.  4 - RED                 "                X                   X
  519.  5 - MAGENTA             "                X                   X
  520.  6 - YELLOW              "                X                   X
  521.  7 - WHITE               "                X                   X
  522.  8 - GRAY               High              X
  523.  9 - LBLUE               "                X
  524. 10 - LGREEN              "                X
  525. 11 - LCYAN               "                X
  526. 12 - LRED                "                X
  527. 13 - LMAGENTA            "                X
  528. 14 - LYELLOW             "                X
  529. 15 - LWHITE              "                X
  530.  
  531. The COLORs are defined as CONSTANT in the DFRAMEX.INC file so you may use
  532. either the actual color number, it's name or an INTEGER variable of your own
  533. choosing when CALLing the DIS.PLAY subroutine.
  534.  
  535.  
  536.  
  537. DOORFRAME v1.8 - Users Guide - Page 9
  538.  
  539.  
  540.                               CONFIGURATION FILE
  541.                               ==================
  542.  
  543. The format of the configuration file used by Doors created with DoorFrame is:
  544.  
  545. C:\PCB\PCBOARD.SYS              <- For PCBoard systems using PCBOARD.SYS only
  546. C|\PCB\USERS.SYS                <- For PCBoard systems using USERS.SYS
  547. C:\BBS\CALLINFO.BBS             <- For Wildcat! systems (prior to v3.0)
  548. C:\BBS\GTUSER.BBS               <- For GT Power systems
  549. C:\BBS\USERINFO.DAT             <- For Wildcat! 3.x+ systems.
  550. C:\BBS\DOOR.SYS                 <- For systems that support DOOR.SYS
  551. C:\BBS\DORINFOx.DEF             <- For QBBS/RBBS/RA. Replace x with Node #.
  552. C:\BBS\SFDOORS.DAT              <- For Spitfire systems.
  553. C:\BBS\TRIBBS.SYS               <- For TriBBS systems.
  554. MicroNet                        <- BBS name
  555. Ted                             <- Sysop's first name
  556. Freeman                         <- Sysop's last name
  557.   .                             <- The Configuration file is left open as #1
  558.   .                                so you may add whatever is necessary.
  559.  
  560. NOTE: See Miscellaneous Notes for info on using Environment Variables.
  561.  
  562. NOTE: There are 2 additional lines necessary when using GTUSER.BBS. Since
  563.       this file does not provide the ComPort% and NodeNum% variables, advise
  564.       your Door users to add them to this .CFG file on lines 5 and 6
  565.       respectively. Both variables will default to 1.
  566.  
  567. DOORFRAME v1.8 - Users Guide - Page 10
  568.  
  569.                   VARIABLES AVAILABLE WHEN USING PCBOARD.SYS
  570.                   ==========================================
  571.  
  572.         ALLOWEDBYTES&             Allowed D/L bytes from the PWRD file.
  573.                                   This number is in actual bytes
  574.                                   rather than Kilobytes allowed.
  575.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  576.       * BAUDOPEN$                 Port opening BPS
  577.       * BBSSYS$                   Name of the BBS
  578.         CALLALARM%                Caller alarm status.     -1=ON, 0=OFF
  579.       * CALLERSLOC$               Location of CALLERSx log
  580.         CHATSTATUS$               Chat mode status. "U" or "A"
  581.       * CITY$                     Callers city and state
  582.       * CNAMESLOC$                Location of CNAMES
  583.       * COMPORT%                  COM port number
  584.         CONFREG$                  Conferences registered in
  585.         DISPLAY%                  Local display status.    -1=ON, 0=OFF
  586.         DOWNLOADS&                Number of downloads made
  587.       * ECC%                      Error corrected connect.  1=YES, 0=NO
  588.         EXENAME$                  Name of .EXE (Programmer supplied)
  589.         EXPERT$                   Expert mode - "Y" or "N"
  590.         EXPIRE$                   Callers expiration date
  591.       * FIRST$                    Callers first name
  592.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  593.                                   Determines if the caller is ANSI compatible
  594.                                   If your door requires the use of cursor
  595.                                   positioning and GRAPHICS% = 0 then you
  596.                                   should kick him back out of the door.
  597.       * HPHONE$                   Callers home phone number
  598.       * LASTON$                   Date caller last logged on (MM-DD-YY)
  599.         LEVEL&                    Callers security level
  600.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  601.       * LOGONHRS$                 Time caller logged on in HH:MM format
  602.       * LOGONMINS%                Time caller logged on in minutes
  603.         MODE%                     0 = Non-color, -1 = color is on. Default
  604.                                   is the BBS setting. You may force color
  605.                                   by setting this to -1.
  606.       * NAME$                     Callers full name
  607.       * NETWORK%                  1 = BBS is networked, 0 = no network
  608.       * NODENUM%                  Node number
  609.         OWNER$                    Name DoorFrame is registered to (if any).
  610.         PASSWORD$                 Password of caller
  611.         PAGEBELL%                 Page bell status.        -1=ON, 0=OFF
  612.         PAGELEN%                  Callers page length
  613.       * PCBDAT$                   Location of PCBOARD.DAT
  614.       * PCBOARD%                  1 = PCBoard, 0 = non-PCBoard
  615.         PRINTER%                  Printer status.          -1=ON, 0=OFF
  616.         PROGNAME$                 Name of DOOR (Programmer supplied)
  617.         PROTOCOL$                 Caller's default protocol (Z, X, etc.)
  618.         RESPONSE$                 Returned after a CALL to IN.PUT
  619.         SERIAL$                   Your DoorFrame serial #. String variable.
  620.       * SYSLOC$                   Location of system file. This contains the
  621.                                   path/filename of line 1 in the .CFG file.
  622.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  623.       * SYSOPFIRST$               Sysops first name
  624.         SYSOPFLAG$                " ", "N"=Sysop Next, "X"=Exit to DOS
  625.       * SYSOPLAST$                Sysops last name
  626.       * SYSOPNAME$                Sysops first and last names
  627.  
  628.  
  629. DOORFRAME v1.8 - Users Guide - Page 11
  630.  
  631.  
  632.         TIMEADJUST%               Use to adjust the callers remaining time
  633.                                   online. This variable adjusts the ELAPSED
  634.                                   time so if you wish to decrease his time,
  635.                                   give this a positive value.
  636.       * TIMEALWD%                 Minutes caller is allowed
  637.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  638.                                   calculates this so changing it has no effect
  639.       * TIMENOW%                  Current time in minutes (0 - 1440)
  640.       * TIMESON%                  Number of times on system
  641.         TIMEOUT%                  Programmer supplied keyboard timeout.
  642.                                   Defaults to 300 (5 mins) if not specified. 
  643.                                   Has a minimum of 60 seconds. Maximum is 
  644.                                   32,767 since it's an integer.
  645.       * TIMEUSED%                 Time used so far today in minutes
  646.         UPLOADS&                  Number of uploads made
  647.       * USERCOMMENT$              User maintained comment
  648.       * USERSLOC$                 Location of USERS file
  649.       * USERNUM%                  Record number of caller
  650.         VERSION$                  DOOR version # (Programmer supplied)
  651.       * WPHONE$                   Callers work phone number
  652.  
  653. NOTES: Variables marked with '*' are provided for information only.
  654.  
  655.  
  656. DOORFRAME v1.8 - Users Guide - Page 12
  657.  
  658.  
  659.                    VARIABLES AVAILABLE WHEN USING USERS.SYS
  660.                    ========================================
  661.  
  662.         When using USERS.SYS, all variables contained in PCBOARD.SYS may
  663.         be used plus the following additional variables.
  664.  
  665.         DAILYDNLDBYTES&          Bytes downloaded so far today.
  666.         DELETEFLAG%              1 = delete this record, 0 = keep
  667.         EXPIREDLEVEL&            Expired Security level
  668.         LASTCONF%                Conference number last in.
  669.         LASTTIMEON$              Last time caller was on
  670.         MSGS.LEFT%               Number of messages posted
  671.         MSGS.READ%               Number of messages read
  672.         PCB.VERSION%             PCBoard version number (i.e. 1450)
  673.         TOTDNLDBYTES&            Total number of BYTES downloaded
  674.         TOTUPLDBYTES&            Total number of BYTES uploaded
  675.  
  676. NOTES: These variables are all passed back to PCBoard.
  677.  
  678.  
  679. DOORFRAME v1.8 - Users Guide - Page 13
  680.  
  681.                     VARIABLES AVAILABLE WHEN USING DOOR.SYS
  682.                     =======================================
  683.  
  684.     !   ALIAS$                    Callers alias/handle
  685.     ! * ANSISUPPORT$              Caller supports ANSI but in NG mode
  686.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  687.       * BAUDOPEN$                 Port opening BPS
  688.     ! * BBSCOLOR%                 BBS default color code (1-15)
  689.       * BBSSYS$                   Name of the BBS
  690.         BIRTHDATE$                Callers date of birth
  691.         CALLALARM%                Caller alarm status.     -1=ON, 0=OFF
  692.       * CITY$                     Callers city and state
  693.       * COMPORT%                  COM port number (1 - 4).
  694.         CONFREG$                  Conferences registered in
  695.         DAILY.BYTES.ALWD&         Daily download max. K limit
  696.         DISPLAY%                  Local display status.    -1=ON, 0=OFF
  697.     !   DOORS.OPENED%             Number of Doors caller has opened
  698.         DOWNLOADS&                Number of downloads made
  699.     ! * ECC%                      Error corrected connect.  1=YES, 0=NO
  700.         EXENAME$                  Name of .EXE (Programmer supplied)
  701.         EXFROM%                   Conference exited to Door from.
  702.         EXPERT$                   Expert mode - "Y" or "N"
  703.         EXPIRE$                   Callers expiration date
  704.     ! * EVENT$                    Event time (hh:mm)
  705.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  706.                                   Determines if the caller is ANSI compatible
  707.                                   If your door requires the use of cursor
  708.                                   positioning and GRAPHICS% = 0 then you
  709.                                   should kick him back out of the door.
  710.       * HPHONE$                   Callers home phone number
  711.       * LASTON$                   Date caller last logged on (MM-DD-YY)
  712.     !   LASTSCAN$                 Date of last directory/new files scan.
  713.         LEVEL&                    Callers security level
  714.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  715.       * LOGONHRS$                 Time caller logged on in HH:MM format
  716.       * LOGONMINS%                Time caller logged on in minutes
  717.     !   MAX.FILES%                Maximum daily files available
  718.     !   MINSCREDIT%               Time credits in minutes
  719.         MODE%                     0 = Non-color, -1 = color is on. Default
  720.                                   is the BBS setting. You may force color
  721.                                   by setting this to -1.
  722.     !   MSGS.LEFT%                Total messages left
  723.       * NAME$                     Callers full name
  724.     ! * NETWORK%                  1 = BBS is networked, 0 = no network
  725.       * NODENUM%                  Node number
  726.         DLTODAY&                  Files downloaded so far today
  727.         OWNER$                    Name DoorFrame is registered to (if any).
  728.         PAGEBELL%                 Page bell status.        -1=ON, 0=OFF
  729.         PAGELEN%                  Callers page length
  730.       * PARITY%                   Parity (word length?) (7 or 8)
  731.         PASSWORD$                 Password of caller
  732.       * PATHGEN$                  Path to the GEN directory
  733.       * PATHMAIN$                 Path to the MAIN directory
  734.         PRINTER%                  Printer status.          -1=ON, 0=OFF
  735.         PROGNAME$                 Name of DOOR (Programmer supplied)
  736.         PROTOCOL$                 Callers default protocol (Z, X, etc)
  737.         RESPONSE$                 Returned after a CALL to IN.PUT
  738.  
  739.  
  740. DOORFRAME v1.8 - Users Guide - Page 14
  741.  
  742.  
  743.         SECREM$                   Number of seconds remaining this call.
  744.         SERIAL$                   Your DoorFrame serial #. String variable.
  745.       * SYSLOC$                   Location of system file. This contains the
  746.                                   path/filename of line 1 in the .CFG file.
  747.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  748.       * SYSOPFIRST$               Sysops first name
  749.       * SYSOPLAST$                Sysops last name
  750.       * SYSOPNAME$                Sysops first and last names
  751.         TIMEADJUST%               Use to adjust the callers remaining time
  752.                                   online. This variable adjusts the ELAPSED
  753.                                   time so if you wish to decrease his time,
  754.                                   give this a positive value.
  755.     ! * TIMELASTCALL$             Time of last call (hh:mm)
  756.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  757.                                   calculates this so changing it has no effect
  758.       * TIMENOW%                  Current time in minutes (0 - 1440)
  759.         TIMEOUT%                  Programmer supplied. Defaults to 5 mins if
  760.                                   not specified. Has a minimum of one min.
  761.                                   No limit on maximum. 
  762.       * TIMESON%                  Number of times on system
  763.       * TIMEUSED%                 Time used so far today in minutes
  764.         TOTAL.BYTES.TODAY&        Daily download K total
  765.     !   TOTAL.KB.DL&              Total K bytes downloaded
  766.     !   TOTAL.KB.UL&              Total K bytes uploaded
  767.         UPLOADS&                  Number of uploads made
  768.       * USERCOMMENT$              User maintained comment
  769.       * USERNUM%                  Record number of caller
  770.         VERSION$                  DOOR version # (Programmer supplied)
  771.       * WPHONE$                   Callers work phone number
  772. NOTES: Variables marked with '*' are provided for information only.
  773.        Varialbes marked with '!' are available only in the 52 line version.
  774.  
  775.  
  776. DOORFRAME v1.8 - Users Guide - Page 15
  777.  
  778.                   VARIABLES AVAILABLE WHEN USING USERINFO.DAT
  779.                   ===========================================
  780.  
  781.       * ACTIVE.MENU%              0=Main, 1=Msg, 2=File, 3=Sysop
  782.         ALIAS$                    Callers alias/handle
  783.       * ANSISUPPORT$              'Y' or 'N' for ANSI enabled.
  784.         BANKED.TIME%              Banked time. (DLT - MaxLogOn)
  785.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  786.       * COMMAND.LINE$             Started with a CommandLine switch. Y or N.
  787.       * DATABITS$                 Databits, 7 or 8.
  788.       * DOOR.LOGOFF$              Y or N. Set to Y if caller logged off from
  789.                                   inside the door.
  790.         DOOR.DL&                  Number of files DL'ed in the door.
  791.         DOOR.KB&                  Downloads in K, add to daily and total bytes
  792.       * ECC%                      Error corrected connect.  1=YES, 0=NO
  793.         LASTSCAN$                 Time/date of last new files scan
  794.       * LOGONTIMEDATE$            Time and date caller logged on to BBS
  795.       * NAME$                     Callers full name
  796.         SEC.LEVEL.NAME$           Security level name.
  797. NOTES: Variables marked with '*' are provided for information only.
  798.        All other variables are taken from the DOOR.SYS file.
  799.  
  800.                   VARIABLES AVAILABLE WHEN USING DORINFOx.DEF
  801.                   ===========================================
  802.  
  803.       * BAUDRATE$                 Baud rate and parity of caller.
  804.                                   Ex. 2400 BAUD,N,8,1
  805.                                   NOTE: RBBS adds baud rate of BBS.
  806.       * BBSSYS$                   Name of the BBS
  807.       * CITY$                     Callers city and state
  808.       * COMPORT%                  COM port number (1 - 4).
  809.         DISPLAY%                  Defaults to -1 (ON).
  810.       * DORINFO13TH$              13th line available only on RBBS systems.
  811.         EXENAME$                  Name of .EXE (Programmer supplied)
  812.       * FIRST$                    Callers first name
  813.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  814.                                   Determines if the caller is ANSI compatible
  815.                                   If your door requires the use of cursor
  816.                                   positioning and GRAPHICS% = 0 then you
  817.                                   should kick him back out of the door.
  818.                                   Use DETECT.ANSI to determine this.
  819.       * LAST$                     Callers last name
  820.       * LASTON$                   Default 01-01-80 (not provided in DORINFO)
  821.         LEVEL&                    Callers security level
  822.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  823.         MODE%                     0 = Non-color, -1 = color is on. Default
  824.                                   is the BBS setting. You may force color
  825.                                   by setting this to -1.
  826.       * NAME$                     Callers full name
  827.         NETWORK$                  Network type. DoorFrame reads/writes as is.
  828.       * NODENUM%                  Number of this Node.
  829.         OWNER$                    Name DoorFrame is registered to (if any).
  830.         PROGNAME$                 Name of DOOR (Programmer supplied)
  831.         RESPONSE$                 Returned after a CALL to IN.PUT
  832.         SERIAL$                   Your DoorFrame serial #. String variable.
  833.       * SYSLOC$                   Location of system file. This contains the
  834.                                   path/filename of line 1 in the .CFG file.
  835.  
  836.  
  837. DOORFRAME v1.8 - Users Guide - Page 16
  838.  
  839.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  840.       * SYSOPFIRST$               Sysops first name
  841.       * SYSOPLAST$                Sysops last name
  842.       * SYSOPNAME$                Sysops first and last names
  843.         TIMEADJUST%               Use to adjust the callers remaining time
  844.                                   online. This variable adjusts the ELAPSED
  845.                                   time so if you wish to decrease his time,
  846.                                   give this a positive value.
  847.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  848.                                   calculates this so changing it has no effect
  849.       * TIMENOW%                  Current time in minutes (0 - 1440)
  850.         TIMEOUT%                  Programmer supplied. Defaults to 5 mins if
  851.                                   not specified. Has a minimum of one min.
  852.                                   No limit on maximum. 
  853.       * TIMESON%                  Defaults to 1 (Not provided in DORINFO)
  854.       * TIMEUSED%                 Time used so far today in minutes
  855.  
  856. NOTES: Variables marked with '*' are provided for information only.
  857.  
  858.  
  859.                   VARIABLES AVAILABLE WHEN USING CALLINFO.BBS
  860.                   ===========================================
  861.  
  862.       * ALREADYCONNECTED$         "TRUE" or "FALSE"
  863.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  864.       * BBSSYS$                   Name of the BBS
  865.       * CITY$                     Callers city and state
  866.       * COMPORT%                  COM port number (1 - 4).
  867.         CONFREG$                  Conferences registered in (ABCD etc.)
  868.       * CONSOLE$                  "LOCAL" or "REMOTE"
  869.         DAILY.BYTES.ALWD&         Daily download max. K limit
  870.       * DATABITS$                 7 or 8
  871.         DISPLAY%                  Local display status.    -1=ON, 0=OFF
  872.       * DOORNUMBER$               BBS number of this door?
  873.         EXENAME$                  Name of .EXE (Programmer supplied)
  874.       * ENTERDOOR$                Time caller entered door in HH:MM format.
  875.       * FIRST$                    Callers first name
  876.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  877.                                   Determines if the caller is ANSI compatible
  878.                                   If your door requires the use of cursor
  879.                                   positioning and GRAPHICS% = 0 then you
  880.                                   should kick him back out of the door.
  881.                                   Use DETECT.ANSI to determine this.
  882.       * LAST$                     Callers last name
  883.         LASTMSG$                  Last message read
  884.       * LASTONDATE$               Date and time of last call
  885.         LEVEL&                    Callers security level
  886.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  887.       * LOGONTIMEDATE$            Time and date caller logged on to BBS
  888.       * LOGONHRS$                 Time caller logged on in HH:MM format
  889.         MODE%                     0 = Non-color, -1 = color is on. Default
  890.                                   is the BBS setting. You may force color
  891.                                   by setting this to -1.
  892.       * MNP$                      "MNP/ARQ Connection" or "Normal Connection"
  893.       * NAME$                     Callers full name
  894.         DLTODAY&                  Files downloaded so far today
  895.  
  896.  
  897. DOORFRAME v1.8 - Users Guide - Page 17
  898.  
  899.         OWNER$                    Name DoorFrame is registered to (if any).
  900.         PASSWORD$                 Password of caller
  901.         PROGNAME$                 Name of DOOR (Programmer supplied)
  902.         RESPONSE$                 Returned after a CALL to IN.PUT
  903.         SERIAL$                   Your DoorFrame serial #. String variable.
  904.       * SYSLOC$                   Location of system file. This contains the
  905.                                   path/filename of line 1 in the .CFG file.
  906.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  907.       * SYSOPFIRST$               Sysops first name
  908.       * SYSOPLAST$                Sysops last name
  909.       * SYSOPNAME$                Sysops first and last names
  910.         TIMEADJUST%               Use to adjust the callers remaining time
  911.                                   online. This variable adjusts the ELAPSED
  912.                                   time so if you wish to decrease his time,
  913.                                   give this a positive value.
  914.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  915.                                   calculates this so changing it has no effect
  916.       * TIMENOW%                  Current time in minutes (0 - 1440)
  917.       * TIMEOFF$                  Time caller exited from the door.
  918.         TIMEOUT%                  Programmer supplied. Defaults to 5 mins if
  919.                                   not specified. Has a minimum of one min.
  920.                                   No limit on maximum. 
  921.       * TIMEUSED%                 Time used so far today in minutes
  922.       * USERNUM%                  Record number of caller
  923.  
  924. NOTES: Variables marked with '*' are provided for information only.
  925.  
  926.  
  927. DOORFRAME v1.8 - Users Guide - Page 18
  928.  
  929.                   VARIABLES AVAILABLE WHEN USING SFDOORS.DAT
  930.                   ==========================================
  931.  
  932.         ANSION$                   "TRUE" or "FALSE"
  933.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  934.       * BBSDIR$                   Spitfire's home directory
  935.       * BBSSYS$                   Name of the BBS
  936.       * CITY$                     Callers city and state
  937.       * COMPORT%                  COM port number (1 - 4).
  938.         DAILY.BYTES.ALLOWED&      Maximum download BYTES per day
  939.         DISPLAY%                  Local display status.    -1=ON, 0=OFF
  940.         DLPERDAY&                 Number of downloads allowed per day
  941.         DLTODAY&                  Number of downloads made today
  942.         DOWNLOADS&                Number of downloads made
  943.       * ECC%                      Error corrected connect.  1=YES, 0=NO
  944.         EXENAME$                  Name of .EXE (Programmer supplied)
  945.         EXTRATIME&                Number of seconds gained since logon
  946.       * FIRST$                    Callers first name
  947.       * FRONTEND$                 "TRUE" or "FALSE" if booted from a
  948.                                   front end program.
  949.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  950.                                   Determines if the caller is ANSI compatible
  951.                                   If your door requires the use of cursor
  952.                                   positioning and GRAPHICS% = 0 then you
  953.                                   should kick him back out of the door.
  954.                                   Use DETECT.ANSI to determine this.
  955.       * HPHONE$                   Callers home phone number
  956.       * LAST$                     Callers last name
  957.         LASTMCONF$                Last message conference
  958.         LASTFAREA$                Last file area
  959.         LEVEL&                    Callers security level
  960.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  961.       * LOGONHRS$                 Time caller logged on in HH:MM format
  962.       * LOGONSECS&                Number of seconds since midnight
  963.                                   when caller logged on to the BBS.
  964.       * MAXBAUD$                  Maximum baud of the system
  965.         MODE%                     0 = Non-color, -1 = color is on. Default
  966.                                   is the BBS setting. You may force color
  967.                                   by setting this to -1.
  968.       * NAME$                     Callers full name
  969.       * NODENUM%                  Number of this Node.
  970.       * NODTELOCK$                "TRUE" or "FALSE" if configured for
  971.                                   software data flow control.
  972.         OWNER$                    Name DoorFrame is registered to (if any).
  973.         PASSWORD$                 Password of caller
  974.         PROGNAME$                 Name of DOOR (Programmer supplied)
  975.         RESPONSE$                 Returned after a CALL to IN.PUT
  976.       * SECONDS&                  Number of seconds since midnight
  977.                                   when caller entered the door.
  978.         SERIAL$                   Your DoorFrame serial #. String variable.
  979.       * SYSLOC$                   Location of system file. This contains the
  980.                                   path/filename of line 1 in the .CFG file.
  981.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  982.       * SYSOPFIRST$               Sysops first name
  983.  
  984. NOTES: Variables marked with '*' are provided for information only.
  985.  
  986.  
  987. DOORFRAME v1.8 - Users Guide - Page 19
  988.  
  989.       * SYSOPLAST$                Sysops last name
  990.       * SYSOPNAME$                Sysops first and last names
  991.         SYSOPNEXT$                "TRUE" or "FALSE"
  992.         TIMEADJUST%               Use to adjust the callers remaining time
  993.                                   online. This variable adjusts the ELAPSED
  994.                                   time so if you wish to decrease his time,
  995.                                   give this a positive value.
  996.       * TIMEALWD%                 Minutes caller is allowed
  997.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  998.                                   calculates this so changing it has no effect
  999.       * TIMENOW%                  Current time in minutes (0 - 1440)
  1000.         TIMEOUT%                  Programmer supplied. Defaults to 5 mins if
  1001.                                   not specified. Has a minimum of one min.
  1002.                                   No limit on maximum. 
  1003.       * TIMEUSED%                 Time used so far today in minutes
  1004.  
  1005.         TOTAL.BYTES.TODAY&        BYTES downloaded so far today
  1006.         TOTAL.KB.DL&              Total K bytes downloaded
  1007.         TOTAL.KB.UL&              Total K bytes uploaded
  1008.         UPLOADS&                  Number of uploads made
  1009.       * USERNUM%                  Record number of caller
  1010.  
  1011. NOTES: Variables marked with '*' are provided for information only.
  1012.  
  1013.  
  1014. DOORFRAME v1.8 - Users Guide - Page 20
  1015.  
  1016.                                 MISCELLANEOUS NOTES
  1017.                                 ===================
  1018.  
  1019. Check DFRAMEX.INC for an explanation of variables not listed above.
  1020.  
  1021. DoorFrame requires DOS 3.x and up since all files are opened in SHARED mode.
  1022.  
  1023. When using PCBOARD.SYS, DoorFrame also accesses the USERS file.
  1024.  
  1025. When using USERS.SYS, DoorFrame also accesses PCBOARD.SYS, PCBOARD.DAT and the 
  1026. USERS file.
  1027.  
  1028. The DOOR.SYS used by DoorFrame is the standard 52 line GAP (tm) file.
  1029.  
  1030. The CALLINFO.BBS used by DoorFrame currently contains 36 lines.
  1031.  
  1032. Trapping errors
  1033. ---------------
  1034.  If you wish to utilize the internal error trapping, insert the following
  1035.  line wherever you wish the trapping to begin. I would suggest putting it
  1036.  right after you call INITIALIZE.
  1037.  
  1038.    ON ERROR GOTO ERR.ROUTINE
  1039.  
  1040.  Then at the very end of your program insert the following:
  1041.  
  1042.    ERR.ROUTINE:
  1043.    ERRORS ERR, ERL
  1044.    END
  1045.  
  1046.  If ANY Basic error is encountered, it will branch to ERR.ROUTINE and call
  1047.  the ERRORS subroutine. The error will be printed to the screen and written
  1048.  to DFRAME.ERR. Your Door will then exit back to the BBS.
  1049. The first few lines of your Door should be:
  1050.  
  1051.    ' $INCLUDE: 'DFRAMEX.INC'
  1052.    PROGNAME$ = "Name of the Door"
  1053.    VERSION$ = " v1.8"
  1054.    EXENAME$ = "FILENAM"           <- NOTE: Max of 7 letters!
  1055.    TIMEOUT% = 240                 <- Numbers of seconds to wait for keyboard
  1056.                                      activity. 240 will wait for 4 minutes
  1057.                                      then send a Keyboard Timeout msg. and
  1058.                                      exit back to the BBS. Defaults to 300.
  1059.    OWNER$ = "Your Name"           <- For registered DoorFrame users only.
  1060.    SERIAL$ = "99999"              <- DoorFrame will display an EVALUATION
  1061.                                      COPY message until registered.
  1062.    INITIALIZE
  1063.    .
  1064.    Your code.......
  1065.    .
  1066.    MAKE.BLT HI.SCORE&            <- If you want one generated.
  1067.    SHOW.BLT "Y"                  <- If you want to show it before door closes.
  1068.    EXIT.DOOR "Y"
  1069. The configuration filename passed on the command line is OPENed as #1. This
  1070. file is left open so you may read additional lines from the .CFG file. 
  1071. Although it is not absolutely necessary, you should CLOSE #1 somewhere near
  1072. the start of your program.
  1073.  
  1074.  
  1075. DOORFRAME v1.8 - Users Guide - Page 21
  1076.  
  1077. Using SysopKeys%
  1078. ----------------
  1079. By setting SysopKeys% = 1 (after calling INITIALIZE), you can utilize the
  1080. arrow keys for remote input. This could be used for moving highlight bars
  1081. etc. (see the DFDEMO for an example).  Using the arrow keys from remote can
  1082. present difficulties because the terminal program the caller is using may
  1083. have redefined the arrow keys. Qmodem is a good example. Normally the up
  1084. arrow in Qmodem activates the scroll back buffer. However, if you switch
  1085. Qmodem into DoorWay mode (ALT =), the arrow keys can be used. I do not know
  1086. if this is possible with other terminals (feedback anyone?).  If you do
  1087. utilize the arrow keys, you would be wise to provide an alternative method
  1088. of input for those callers who cannot use their arrow keys.
  1089.  
  1090. In addition, set Sysopkeys% = 1 only when arrow input is required then
  1091. immediately set SysopKeys% = 0 since capital H, K, M, and P are also
  1092. interpreted as arrow keys when SysopKeys% = 1.
  1093.  
  1094. Turning off the Status lines.
  1095. -----------------------------
  1096. If for some reason you do not want the 2 Status lines at the bottom of the
  1097. screen to show, you may blank those out at any time with the following.
  1098.  
  1099.  No.Status% = 1
  1100.  ClrScrn Black
  1101.  
  1102. To turn the Status lines back on just set No.Status% = 0.
  1103.  
  1104. Returning control to programmer upon carrier loss
  1105. -------------------------------------------------
  1106. There may be instances where the programmer needs to do some clean-up when
  1107. a loss of carrier occurs before returning to the BBS. There are two variables
  1108. that allow you to do this. After calling INITIALIZE, set Auto.Recycle% = 0.
  1109. If carrier is lost, the variable NoCarrier% is set equal to 1. One way to 
  1110. handle this is to check NoCarrier% after each In.Put, Enter, or More 
  1111. statement. If NoCarrier% = 1, your door will NOT stop for user input. For
  1112. example:
  1113.  
  1114.    In.Put 0, 0, 11, 0, 1, "Prompt > ", 10, 1, 1
  1115.    IF NoCarrier% = 1 THEN GOTO HandleIt
  1116.  
  1117. If the door was sitting at the In.Put prompt when carrier loss occurred, it
  1118. would immediately come out of it and process the next statement. You must be
  1119. VERY CAREFUL when using this option. Make sure you TEST IT THOROUGHLY!!!
  1120.  
  1121. After you have done your clean-up, be sure to call Exit.Door "Y" to terminate
  1122. the door as you normally would.
  1123.  
  1124. System.File% Variable
  1125. ---------------------
  1126. The value of System.File% will tell you which BBS file is being  used 
  1127. according to the following values:
  1128.  
  1129.         1 = PCBOARD.SYS                    6 = DORINFOx.DEF
  1130.         2 = USERS.SYS                      7 = SFDOORS.DAT                    
  1131.         3 = DOOR.SYS                       8 = USERINFO.DAT
  1132.         4 = CALLINFO.BBS                   9 = GTUSER.BBS
  1133.         5 = Not Used                      10 = TRIBBS.SYS
  1134.  
  1135.  
  1136. DOORFRAME v1.8 - Users Guide - Page 22
  1137.  
  1138. Fossil Driver Support
  1139. ---------------------
  1140. DoorFrame supports the use of Fossil drivers.  To tell your Door to use the
  1141. Fossil driver instead of the standard COM ports, just put /FD on the command
  1142. line when running the door. For example:
  1143.      MYDOOR MYDOOR.CFG /FD
  1144. indicates that a Fossil driver is present and should be used. If no Fossil
  1145. driver is detected, DoorFrame will print a message to that effect and exit
  1146. the door gracefully.
  1147.  
  1148. Environment Variables
  1149. ---------------------
  1150. DoorFrame supports COM 1-4 on the standard IRQ's - COM1/COM3 = IRQ4 and
  1151. COM2/COM4 = IRQ3. If you wish to use a non-standard IRQ, add the IRQ
  1152. number after the configuration filename. Let's assume your Door is
  1153. called FOOBAR and you want to use COM1 and IRQ5. The command line
  1154. passed to your Door would be:
  1155.     FOOBAR FOOBAR.CFG /5  or
  1156.     FOOBAR FOOBAR.CFG /%IRQ%  for the environment variable.
  1157. The /5 tells DoorFrame to use IRQ5 rather than the standard IRQ4 that
  1158. is normally used with COM1. No /x parameter is needed for the standard IRQ's.
  1159.  
  1160. When specifying the location of the system file on line 1 of the doors .CFG
  1161. file, you may use the environment variables %pcbdrive%, %pcbdir%, %pcbnode%,
  1162. and %wcnodeid%. Some examples:
  1163.  PCBoard: 
  1164.    USERS.SYS in C:\PCB           - %pcbdrive%%pcbdir%\USERS.SYS
  1165.    USERS.SYS in C:\PCB\NODE1     - %pcbdrive%%pcbdir%\NODE%pcbnode%\USERS.SYS
  1166.  
  1167.  Wildcat!:
  1168.    USERINFO.DAT in C:\WC\NODE1   - C:\WC\NODE%wcnodeid%
  1169.  
  1170. Non-PCBoard systems may use the PCB environment variables by setting them
  1171. in either AUTOEXEC.BAT or in the batch that runs the door. For example:
  1172.  SET PCBDRIVE=C:
  1173.  SET PCBDIR=\BBSDIR
  1174.  SET PCBNODE=1
  1175.  
  1176. 486DX CPU's
  1177. -----------
  1178. The math coprocessor in 486DX CPUs cannot handle floating point math which
  1179. all MicroSoft Basic's use. This can show up as an ERROR 5, a keyboard 
  1180. timeout, etc.
  1181.  
  1182. Fortunately there is an easy fix for this problem. Simply place the following
  1183. line in the AUTOEXEC.BAT file:
  1184.  
  1185. SET NO87=ON
  1186.  
  1187.